<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-body">
                    <table id="exampleTable" data-mobile-responsive="true">
                        <ul id="myTab" class="nav nav-tabs">
                            <li class="active"><a href="#home" data-toggle="tab">
                                底部公司相关配置</a></li>
                            <li><a href="#ios" data-toggle="tab" >联系电话相关配置</a></li>
                            <li><a href="#weChat" data-toggle="tab" >微信号设置</a></li>
                            <!--<li><a href="#kindEditor" data-toggle="tab" >kindEditor测试</a></li>-->
                        </ul>
                        <div id="myTabContent" class="tab-content">
                            <div class="tab-pane fade in active" id="home">
                                <div class="panel panel-default">
                                    <div class="panel-collapse collapse in">
                                        <div class="panel-body">
                                            <form class="form-horizontal m-t" id="signupForm2">
                                                <label for="companyName" class="control-label">公司名:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="companyName" name="companyName"
                                                           placeholder="请输入公司名">
                                                </div>
                                                <br>
                                                <label for="copyright" class="control-label">版权所有:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="copyright" name="copyright"
                                                           placeholder="请输入版权名">
                                                </div>
                                                <br>
                                                <label for="recordNo" class="control-label">皖公网安备号:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="recordNo" name="recordNo"
                                                           placeholder="请输入版权名">
                                                </div>
                                                <br>
                                                <label for="technicalSupport" class="control-label">技术支持:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="technicalSupport" name="technicalSupport"
                                                           placeholder="请输入技术支持名称">
                                                </div>
                                                <br>
                                                <button type="button" onclick="updateCompany()" class="btn btn-primary">保存</button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="ios">
                                <div class="panel panel-default">
                                    <div class="panel-collapse collapse in">
                                        <div class="panel-body">
                                            <form class="form-horizontal m-t" id="signupForm">
                                                <label for="consultPhone" class="control-label">咨询电话:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="consultPhone" name="consultPhone"
                                                           placeholder="请输入咨询电话">
                                                </div>
                                                <br>

                                                <label for="complainPhone" class="control-label">投诉电话:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="complainPhone" name="complainPhone"
                                                           placeholder="请输入投诉电话">
                                                </div>
                                                <br>

                                                <label for="faxPhone" class="control-label">传真:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="faxPhone" name="faxPhone"
                                                           placeholder="请输入传真">
                                                </div>
                                                <br>
                                                <button onclick="updatePhone()" type="button" class="btn btn-primary">保存</button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="weChat">
                                <div class="panel panel-default">
                                    <div class="panel-collapse collapse in">
                                        <div class="panel-body">
                                            <form class="form-horizontal m-t" id="signupForm3">
                                                <label for="weChat" class="control-label">微信号:</label>
                                                <div>
                                                    <input type="text" class="form-control" id="weChatNum" name="weChatNum"
                                                           placeholder="请输入咨询电话">
                                                </div>
                                                <br>
                                                <button onclick="updateWeChatNum()" type="button" class="btn btn-primary">保存</button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="tab-pane fade" id="kindEditor">
                                <div class="panel panel-default">
                                    <div class="panel-collapse collapse in">
                                        <div class="panel-body">
                                            <form class="form-horizontal m-t" id="signupForm4">
                                                <label for="weChat" class="control-label">微信号:</label>
                                                <div>
                                                    <!-- 加载编辑器的容器 -->
                                                    <script id="container" name="content" type="text/plain">
                                                    </script>
                                                </div>
                                                <br>
                                                <button onclick="aaaaaaa()" type="button" class="btn btn-primary">保存</button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>

                    </table>
                </div>
            </div>
        </div>
    </div>
    <!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" src="/js/appjs/system/set/sysSet.js"></script>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<!-- 配置文件 -->
<script type="text/javascript" src="/common/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/common/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="/common/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script>

    //实例化编辑器
    var ue = UE.getEditor('container');

    function aaaaaaa() {
        //设置编辑器的内容
        //ue.setContent('hello');
        //获取html内容，返回: <p>hello</p>
        var html = ue.getContent();
        console.log(html)
        //获取纯文本内容，返回: hello
        var txt = ue.getContentTxt();
        console.log(txt)
    }
</script>
</body>
</html>